diff options
| author | real-zephex <[email protected]> | 2024-04-12 11:39:57 +0530 |
|---|---|---|
| committer | real-zephex <[email protected]> | 2024-04-12 11:39:57 +0530 |
| commit | f6ecf3a393ba50bb74ce83ad2bc723e2670f7215 (patch) | |
| tree | 676f00108119d29253ffe0b658c62575788199e4 /src/app/kdrama/[id]/buttons.jsx | |
| parent | fix: fixed kdrama page and made it available (diff) | |
| download | dramalama-f6ecf3a393ba50bb74ce83ad2bc723e2670f7215.tar.xz dramalama-f6ecf3a393ba50bb74ce83ad2bc723e2670f7215.zip | |
minor fixes
Diffstat (limited to 'src/app/kdrama/[id]/buttons.jsx')
| -rw-r--r-- | src/app/kdrama/[id]/buttons.jsx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/app/kdrama/[id]/buttons.jsx b/src/app/kdrama/[id]/buttons.jsx index c41c32f..a7d0f60 100644 --- a/src/app/kdrama/[id]/buttons.jsx +++ b/src/app/kdrama/[id]/buttons.jsx @@ -46,9 +46,11 @@ export default function EpisodesButtons({ data: episodeData, id: dramaId }) { episodeData.map((item, index) => ( <button key={index} - onClick={() => - test(item.id, dramaId, item.title) - } + onClick={(event) => { + test(item.id, dramaId, item.title); + event.target.style.backgroundColor = + "var(--soft-purple)"; + }} > {item.title} </button> |